﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
namespace DistrRTgen
{
    class CustomWebClient : WebClient
    {
        protected override WebRequest GetWebRequest(Uri address)
        {
            HttpWebRequest request = (HttpWebRequest)base.GetWebRequest(address);

            // Perform any customizations on the request.
            // This version of WebClient always preauthenticates.
            request.KeepAlive = false;
            return (WebRequest)request;
        }

    }
}
